<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="commons/tags.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<%@ include file="commons/meta.jsp" %>
		<title>接口测试页面</title>
	</head>
	<body>
		<!-- 
				<b>接口测试页面</b>
		<hr/>
		<p/>
		-----------------------  测试接口 ↓ ------------------------ <br/>
		<form action="${ctx}/test/add" method="post"><input type="text" name="name" />
			<input type="submit" value="增加测试"/>
		</form>
		<p/> 
		<table border="0">
			<tr>
				<th colspan="3">数据查询、更新及删除测试:</th>
			<tr/>
			<c:forEach items="${info}" var="t" varStatus="order">
				<tr>
					<c:if test="${order.index eq 0}">
						<form action="${ctx}/test/update" method="post">
							<td>${order.index + 1}</td>
							<td><input type="text" name="name" value="${t.name}" /></td>
							<input type="hidden" name="id" value="1">
							<td><input type="submit" value="更新"/></td>
						</form>
					</c:if>	
					<c:if test="${order.index ne 0}">
						<td>${order.index + 1}</td>
						<td>${t.name}</td>
						<td><a href="${ctx}/test/delete/${t.id}">删除</a></td>						
					</c:if>
				</tr>		
			</c:forEach>			
			
		</table>
		<p/>
		<a href="${ctx}/test.json">json数据查询测试</a>
		<p/>
		-----------------------  测试接口 ↑ ------------------------ <br/>
		 -->
		<p/>
		<hr/>
		-------------测试发布智慧
		<form action="${ctx}/zhihui/addZhihuiByMobile.json" method="post">
		文章标题:<input type="text" name="title"/>
		<br/>
		文章内容:<input type="text" name="content"/>
		<br/>
		文章简介:<input type="text" name="jianjie"/>
		<br/>
		权重:<input type="text" name="weight"/>
	
		<br/>
		第一栏目:<select name="flanmu">
			<option value="1">1</option>
			<option value="2">2</option>
			<option value="3">3</option>
		</select>
		<br/>
		第二栏目:
		<select name="lanmu">
			<option value="1">1</option>
			<option value="2">2</option>
			<option value="3">3</option>
		</select>
		<input type="submit" value="提交">
		</form>
	</body>
</html>